import {
  _decorator,
  Component,
  Node,
  UITransform,
  Sprite,
  Animation,
  SpriteFrame,
  AnimationClip,
  animation,
  utils,
} from 'cc'
const { ccclass, property } = _decorator


// 实体类型
import { SkeletonManager } from '../../Base/SkeletonManager'

// 状态机
import { IronskeletonStateMchine } from './IronskeletonStateMchine'


@ccclass('IronskeletonManager')
export class IronskeletonManager extends SkeletonManager {
  async init(pramers) {
    // 初始化状态机
    this.fsm = this.addComponent(IronskeletonStateMchine)
    await this.fsm.init()

    // 传入默认值
    super.init(pramers)
  }
}
